export const globalMixin = {
	// rpx转px
	methods: {
		rpxToPx(rpx) {
			const screenWidth = uni.getSystemInfoSync().screenWidth
			return (rpx * Number.parseInt(screenWidth)) / 750
		},
		// px转rpx
		pxToRpx(px) {
			const screenWidth = uni.getSystemInfoSync().screenWidth
			return (750 * Number.parseInt(px)) / screenWidth
		}
	},
}
